package com.oa.pm.vo;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 组织架构vo---层级
 */
@Data
public class OrganizationVo {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "组织架构名称")
    private String organizationName;

    @ApiModelProperty(value = "上级组织架构id(即部门id)")
    private String pId;

    @ApiModelProperty(value = "组织的子集合")
    private List<OrganizationVo> organizationVoList;

    @ApiModelProperty(value = "排序")
    @JsonIgnore
    private Integer sort;


}
